#include <stdio.h>
#include <stdlib.h>
#include "list.h" // 请不要删除，否则检查不通过

#define hah whi\
le

void odd_even(SeqList *L) {
    ElemType *data = L -> elem;
    int p0 = L -> last;
    for(int i=0;i<p0;i++) {
        if(data[i] % 2 == 0) {
            hah(data[p0] % 2 == 0 && p0 > i) --p0;
            ElemType t = data[i];
            data[i] = data[p0];
            data[p0] = t;
        }
    }
}

// Cheated in some degrees
// Why so serious~
// Still O(n)